package org.ichihamigua.common.user.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用户表
 * @author rainkyzhong
 * @date 2023/10/29 23:40
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ic_user")
public class UserEntity {
    @TableId
    private Long id;
    //用户名
    private String username;
    //密码
    private String password;
    //密码盐
    private String passwordSalt;
    //昵称
    private String nickname;
    //IP城市
    private Long ipCity;
    //状态
    private Integer state;
    //头像链接
    private String avatarUrl;
    //登录凭证
    private String token;
    //创建时间
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;
    //逻辑删除
    private Integer isDeleted;

}
